<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
require_once("../../isa-lib/nusoap/nusoap.php");
include "../../isa-lib/isa-function/prax.php";
// Kiem tra NSD da login hay qua timeout chua
include "../../connect.php";
include "../../connect_ado.php";
if ($fuseaction == "DISPLAY_SINGLE_REGISTER_RESULT") {
	include "../../init_session.php";
}
// Khoi tao cac bien SESSION chua quyen modul, function cua NSD
if ($fuseaction!="DISPLAY_SINGLE_CITIZEN" && $fuseaction!="UPDATE_CITIZEN" && $fuseaction!="DISPLAY_SINGLE_CITIZEN_RESULT" && $fuseaction!="DISPLAY_SINGLE_VERIFY" && $fuseaction!="DISPLAY_PASSWORD"){
	include "../../front-end/test_login.php";
	include "../../front-end/init_session.php";
}
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "../../onegate_function.php";
include "../receive/const.php";
include "../handle/const.php";
include "../approving-net/approving_net_function.php";
include "app_local.php";
include "const.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_viewing_mode_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}
?>
<script src="../../isa-lib/isa-js/isa_util.js" ></script>
<script src="../receive/js_record.js"></script>
<script src="js_customer.js" ></script><?php
switch($fuseaction) {
	case "DISPLAY_SINGLE_CUSTOMER_IDENTITY";
		$v_is_register_record_on_net = 1;
		$v_worktype = "REGISTER";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_customer_identity.php";
		break;
	case "DISPLAY_SINGLE_CHECK_CUSTOMER_IDENTITY";
		$v_is_register_record_on_net = 1;
		$v_worktype = "CHECK";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_customer_identity.php";
		break;
	case "DISPLAY_SINGLE_RECORDTYPE_IDENTITY";
		$v_is_register_record_on_net = 1;
		include "act_check_customer_signon.php";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_recordtype_identity.php";
		break;
	case "DISPLAY_SINGLE_RECORDTYPE_IDENTITY_REGISTER";
		$v_is_register_record_on_net = 1;
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_recordtype_identity.php";
		break;
	case "DISPLAY_ALL_NET_RECORD_FOR_VIEW";
		$v_status_list = "0,1,2,3";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_NET_RECORD_FOR_VIEW";
		$v_title = CONST_VIEW_NET_RECORD_TITLE;
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../customer/qry_all_record.php";
		include "../customer/dsp_all_record.php";
		break;
	case "DISPLAY_SINGLE_NET_RECORD_FOR_VIEW";
		$v_check_worktype = "VIEW";
		$v_title = CONST_NET_RECORD_VIEW_TITLE;	
		include "../customer/act_check_customer_signon.php";
		include "../customer/qry_single_record.php";
		include "../customer/dsp_single_customer_record.php";
		break;		
	case "DISPLAY_SINGLE_CUSTOMER_RECORD";
		$v_check_worktype = "REGISTER";
		$v_title = CONST_NET_RECORD_VIEW_TITLE;				
		include "qry_single_customer_record.php";
		include "dsp_single_customer_record.php";
		break;
	case "DISPLAY_SINGLE_REGISTER_RESULT";
		include "dsp_single_register_result.php";
		break;
	case "UPDATE_CUSTOMER_RECORD";
		include "act_update_customer_record.php";
		break;
	case "DELETE_CUSTOMER_RECORD";
		include "act_delete_customer_record.php";
		break;
	case "DISPLAY_SINGLE_LOOKUP_CONDITIONS";
		$v_is_view_record_on_net = 1;
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_lookup_conditions.php";
		break;
	case "DISPLAY_ALL_RECORD_WORK";
		include "qry_single_record_by_code.php";
		include "../handle/qry_all_record_work.php";
		include "../handle/dsp_all_record_work.php";
		break;
	case "DISPLAY_SINGLE_RECORD_WORK";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_worktype.php";
		include "../handle/qry_single_record_work.php";
		include "../handle/dsp_single_record_work.php";
		break;
	case "PRINT_CUSTOMER_RECORD";
		include "qry_single_record.php";
		include "dsp_single_customer_record_for_printing.php";
		break;
	///////////////////Phan dang ky su dung dich vu cong///////////////
	case "DISPLAY_SINGLE_CITIZEN";
		include "qry_all_question_security.php";
		include "qry_single_citizen.php";
		include "dsp_single_citizen.php";
		break;
	case "UPDATE_CITIZEN";
		include "act_update_citizen.php";
		break;
	case "DISPLAY_SINGLE_CITIZEN_RESULT";
		include "dsp_single_citizen_result.php";
		break;
	case "DISPLAY_CHANGE_PASSWORD";
		include "dsp_change_password.php";
		break;
	case "CHANGE_PASSWORD";
		include "act_change_password.php";
		break;
	case "DISPLAY_SINGLE_VERIFY";
		include "qry_all_question_security.php";
		include "dsp_single_verify_security.php";
		break;
	case "DISPLAY_PASSWORD";
		include "act_verify_security.php";
		include "act_update_password.php";
		include "dsp_single_password.php";
		break;
	///////////////////////////////////////////////////////////////////
	default:
		$v_is_register_record_on_net = 1;
		$v_worktype = "REGISTER";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "dsp_single_customer_identity.php";
		break;
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_viewing_mode_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}
?>